export default class TreeNode<T>{
    key:T;
    left: TreeNode<T> | null;
    right: TreeNode<T> | null;
    constructor(key:T) {
        this.left = null;
        this.right = null;
        this.key = key;
    }
}
